//
//  CPHomeNewMessageModel.swift
//  cockpit
//
//  Created by Haijun Si on 2020/7/9.
//  Copyright © 2020 chenganrt. All rights reserved.
//

import UIKit
import HandyJSON

struct CPHomeNewMessageModel: HandyJSON {
    var titleStr:String?
    var timeStr:String?
    var msgId:String?
    var linkUrl:String?
    var remark:String?  // 备用字段
}

extension CPHomeNewMessageModel: JFCCellViewModelProtocol {
    var cellHeight: CGFloat {
        return 0
    }

    var identifier: String {
        return "CPHomeNewMessageCell"
    }

    func register(to tableView: UITableView) {
        tableView.register(CPHomeNewMessageCell.self, forCellReuseIdentifier: identifier)
    }
}
